public class Cat extends Animal {
    public String name = "zhangsan";

    public Cat() {

    }

    public void show() {
        System.out.println(super.name);
    }

    public void call() {
//        使用super修饰符访问父类的变量
        System.out.println("miao");
    }


    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
